﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnlianCommon.Common.Domains.SheepFarmHouse
{
    /// <summary>
    /// 栏位管理
    /// </summary>
    public class Field : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int FieldId { get; set; }
        /// <summary>
        /// 栏位名称
        /// </summary>
        public string? FieldName { get; set; }
        /// <summary>
        /// 前缀
        /// </summary>
        public string? Prefix { get; set; }
        /// <summary>
        /// 开始编号
        /// </summary>
        public string? StartNumber { get; set; }
        /// <summary>
        /// 栏位数量(外键)
        /// </summary>
        public int? FieldSum { get; set; }
        /// <summary>
        /// 栋舍主键(外键)
        /// </summary>
        public int? CottageId { get; set; }

    }
}
